package com.markyao.recos.regist;

import java.io.Serializable;
import java.util.Map;

public class RecosRegistConfig implements Serializable {
    private String host;
    private int port;
    private boolean group;
    private boolean isLeader;
    private String[] groupAds;
    private String username;
    private String password;
    private Map<String,String> tokenMap;


    private String usernameMD5;
    private String passwordMD5;

    public boolean isLeader() {
        return isLeader;
    }

    public Map<String, String> getTokenMap() {
        return tokenMap;
    }

    public void setTokenMap(Map<String, String> tokenMap) {
        this.tokenMap = tokenMap;
    }

    public void setLeader(boolean leader) {
        isLeader = leader;
    }

    public String getUsernameMD5() {
        return usernameMD5;
    }

    public void setUsernameMD5(String usernameMD5) {
        this.usernameMD5 = usernameMD5;
    }

    public String getPasswordMD5() {
        return passwordMD5;
    }

    public void setPasswordMD5(String passwordMD5) {
        this.passwordMD5 = passwordMD5;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public RecosRegistConfig(String host, int port, String[] groupAds) {
        this.host = host;
        this.port = port;
        this.groupAds = groupAds;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public boolean isGroup() {
        return group;
    }

    public void setGroup(boolean group) {
        this.group = group;
    }

    public String[] getGroupAds() {
        return groupAds;
    }

    public void setGroupAds(String[] groupAds) {
        this.groupAds = groupAds;
    }
}
